<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<include file="__VIEW__/Common/header.html"/>
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">cid</th>
			  <th>分类名称</th>
			  <th>静态目录</th>
			  <th>列表静态</th>
			  <th>内容静态</th>
			  <th>是否显示</th>
			  <th width="210">操作</th>
			</tr>
			<foreach from="$data" key="$k" value="$v">
			<tr>
				<td>{$v.cid}</td>
				<td>{$v._name}</td>
				<td>{$v.htmldir}</td>
				<td>
					<if value="$v['is_listhtml']">
						<span class="fui-check"></span>
					<else/>
					<span class="fui-cross"></span>
					</if>
				</td>
				<td>
					<if value="$v['is_archtml']">
						<span class="fui-check"></span>
					<else/>
					<span class="fui-cross"></span>
					</if>
					
				</td>
				<td>
					<if value="$v['is_show']">
						<span class="fui-check"></span>
					<else/>
					<span class="fui-cross"></span>
					</if>
				</td>
				<td>
					<a href="{|U:'addSon',array('cid'=>$v['cid'])}" class="btn btn-sm btn-primary">添加子类</a>
					<a href="{|U:'edit',array('cid'=>$v['cid'])}" class="btn btn-sm btn-warning">编辑</a>
					<a href="javascript:;" class="btn btn-sm btn-danger" onclick="if(confirm('确定删除吗？')) location.href='{|U:'del',array('cid'=>$v['cid'])}'">删除</a>
				</td>
			</tr>
			</foreach>
		</table>
	</body>
</html>
